Skip to content

Conversation

@Benjtalkshow
Copy link
Collaborator

@Benjtalkshow Benjtalkshow commented Feb 11, 2026

Summary by CodeRabbit

  • New Features

    • Added error notifications displaying when analytics data fails to load on hackathon pages.
  • Bug Fixes

    • Improved fallback logic for retrieving organization metadata and links from multiple sources.
  • Style

    • Enhanced visual spacing consistency with minimum height adjustments in hackathon creation and loading states.

@vercel
Copy link

vercel bot commented Feb 11, 2026

@Benjtalkshow is attempting to deploy a commit to the Threadflow Team on Vercel.

A member of the Team first needs to authorize it.

@Benjtalkshow Benjtalkshow merged commit 5a95aee into boundlessfi:main Feb 11, 2026
2 of 5 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Feb 11, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The PR introduces error handling for hackathon analytics, refactors organization data structure by moving tagline and about fields into nested metadata, updates API response handling to remove extra nesting layers, and adds fallback logic to read from both direct fields and metadata sources.

Changes

Cohort / File(s) Summary
Analytics Error Handling
app/(landing)/organizations/[id]/hackathons/[hackathonId]/page.tsx
Extended useHackathonAnalytics hook return type to include error property; wired error state into component to display alert UI when analytics loading fails.
Organization Data Structure
components/organization/OrganizationSettings.tsx, components/organization/tabs/ProfileTab.tsx
Moved tagline and about fields from top-level to nested metadata object in organization settings. Updated ProfileTab to read from both direct fields and metadata fallbacks for backward compatibility.
API Response Unwrapping
hooks/use-hackathons.ts, lib/api/hackathons.ts
Removed extra nesting layer from API responses by accessing response.data directly instead of response.data.data in draft-related operations; simplified pagination assignments.
Layout Improvements
components/organization/hackathons/new/NewHackathonTab.tsx
Added minimum height constraint (min-h-[60vh]) to loading and error state containers for consistent vertical spacing.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

  • Hackathon analytics #378: Modifies the same useHackathonAnalytics hook return shape and error handling integration in the hackathon page component.

Suggested reviewers

  • 0xdevcollins

Poem

🐰 The analytics now gracefully tumble,
When errors appear, alerts don't stumble,
Data restructures in metadata's nest,
API responses unwrapped at their best!

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant